cluster=$1
config_path=$2

source ${config_path}/config.sh

${Rscript_archr} ${scripts_dir}/run_TFregulators.All.R \
--comine_data_file ${output_dir}/subcell/${cluster}/${cluster}.combineRNA.motif_peak2gene.Rdata \
--comine_data_all_file ${output_dir}/qc_atac/testis_combined_peak.combineRNA.qc.Rdata \
--scriptPath ${scripts_dir}/scScalpChromatin \
--out_path ${output_dir}/tf_regulators/${cluster} \
2> ${log_path}/tf_regulators.${cluster}.All.log
